package com.gxuwz.medical.dao;

import java.sql.ResultSet;
import java.sql.SQLException;

import com.gxuwz.medical.domain.payStandard.PayStandard;

public class PayStandardDao extends GenericDao<PayStandard> {

	@Override
	protected PayStandard handle(ResultSet rs) throws SQLException {
		try{
			//实例化缴费标准方法
			PayStandard model = new PayStandard();
			//取出ResultSet的值，存进PayStandard里面
			model.setThisYear(rs.getString("thisYear"));
			model.setAccount(rs.getDouble("account"));
			model.setStartTime(rs.getDate("startTime"));
			model.setEndTime(rs.getDate("endTime"));
			model.setRegistrar(rs.getString("registrar"));
			//返回缴费标准对象
			return model;
		}catch(SQLException e){
			throw new SQLException("结果集转为实例失败!",e);
		}
	}

}
